#ifndef COURIER_MAIN_H
#define COURIER_MAIN_H

#include <QWidget>
#include <socketmanager.h>
#include "courier_savestg.h"
#include <telephone_number.h>
#include <QTcpSocket>
#include <QMessageBox>
#include <QInputDialog>
#include <QListWidgetItem>
namespace Ui {
class Courier_main;
}

class Courier_main : public QWidget
{
    Q_OBJECT

public:
    explicit Courier_main(QWidget *parent = nullptr);
    ~Courier_main();
    void flush_cdata();
signals:
    void maintoad();
private slots:
    void on_pushButton_4_clicked();
//    void showempty();
    void f_cdata();
    void on_listWidget_itemClicked(QListWidgetItem *item);
    void tome();
    void on_pushButton_2_clicked();

private:
    Ui::Courier_main *ui;
    QTcpSocket*socket;
    QString telephone_number;
    QString ddnum;
    Courier_savestg *save_page;

};

#endif // COURIER_MAIN_H
